<template>
  <div>
    <!-- 添加校历 -->
  </div>
</template>
<script>
export default {
  name: "addCalendar",
  data() {
    return {
      totalDates: 0
    };
  },
  created() {
    let now = new Date();
    let month = now.getMonth() + 1;
  },
  methods: {
    //根据日期得知星期几
    getWeekDay(date) {
      var week;
      if (date.getDay() == 0) week = "周日";
      if (date.getDay() == 1) week = "周一";
      if (date.getDay() == 2) week = "周二";
      if (date.getDay() == 3) week = "周三";
      if (date.getDay() == 4) week = "周四";
      if (date.getDay() == 5) week = "周五";
      if (date.getDay() == 6) week = "周六";
      return week;
    }
  }
};
</script>
